﻿using CQRSFramework.Commands;
using CQRSFramework.Domains;
using CQRSFramework.Events.Impl;
using System.Collections.Generic;

namespace CQRSFramework.Events
{
    public interface IEventService
    {
        void CommitDomainEvents(ICommand command, IAggregateRoot aggregateRoot, IEnumerable<IDomainEvent> domainEvents);
        void PublishDomainEvents(IEnumerable<IDomainEvent> domainEvents);
    }
}
